/**
 * 仓库
 *
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/1/15
 */
package com.sxf.crm.repository;


import com.sxf.crm.entity.ContactDepartment;
import com.sxf.crm.entity.ContactDepartmentId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContactDepartmentRepository extends JpaRepository<ContactDepartment, ContactDepartmentId> {
    List<ContactDepartment> findByIdContactId(Long contactId);
    List<ContactDepartment> findByIdDepartmentId(Long departmentId);
}
